#ifndef TITLE_ADAPTER_H
#define TITLE_ADAPTER_H

#include "../model/title.h"

#include <boost/shared_ptr.hpp>

namespace handler {
	class title_adapter {
	public:
		title_adapter(boost::shared_ptr<model::title> t):_title(t) {}
		~title_adapter() {}

		bool operator == (const title_adapter &t) const 
		{
			return _title->get_title() == 
				t._title->get_title();
		}
		bool operator != (const title_adapter &t) const
		{
			return !((*this) == t);
		}
		boost::shared_ptr<model::title> get() { return _title; }

		void print() const { _title->print(); }
	private:
		boost::shared_ptr<model::title> _title;
	};
}

ostream& operator << (ostream &rhs, handler::title_adapter &set);

#endif
